<!-- 入库记录 -->
<template>
  <div class="storageRecord">
    <div class="storageRecord-header">
      <div class="storageRecord-header-btn">
        <el-button size="mini">导出</el-button>
      </div>
      <div class="storageRecord-header-info">
        <!-- <div class="storageRecord-header-info-item">
          <span>需求总量：</span>
          <span>90</span>
        </div> -->
        <!-- <div class="storageRecord-header-info-item">
          <span>领用总量：</span>
          <span>0</span>
        </div> -->
        <div class="storageRecord-header-info-item">
          <span>入库总量：</span>
          <span>0</span>
        </div>
      </div>
    </div>
    <div class="storageRecord-main">
      <el-table :data="data" border style="width: 100%" >
        <el-table-column type="index" label="序号" width="50" align="center" />
        <el-table-column prop="name" label="入库单名称" align="center"></el-table-column>
        <el-table-column prop="code" label="入库单编号" align="center"></el-table-column>
        <el-table-column prop="spec" label="入库日期" align="center"></el-table-column>
        <el-table-column prop="batchCode" label="批次号" align="center"></el-table-column>
        <el-table-column prop="quantityRecived" label="入库数量" align="center"></el-table-column>
        <el-table-column prop="warehouseName" label="仓库名称" align="center"></el-table-column>
        <el-table-column prop="locationName" label="库区名称" align="center"></el-table-column>
        <el-table-column prop="areaName" label="库位名称" align="center"></el-table-column>
        <el-table-column label="操作" align="center">
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click="handleClick(scope.row)">查看</el-button>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'storageRecord',
    props: {
      data: undefined
    },
    data() {
      return {
        tableData: [
          {
            name: '1',
            code: '2',
            spec: '3',
            unit: '单位'
          },
          {
            name: '1',
            code: '2',
            spec: '3',
            unit: '单位'
          },
          {
            name: '1',
            code: '2',
            spec: '3',
            unit: '单位'
          },
          {
            name: '1',
            code: '2',
            spec: '3',
            unit: '单位'
          },
          {
            name: '1',
            code: '2',
            spec: '3',
            unit: '单位'
          },
          {
            name: '1',
            code: '2',
            spec: '3',
            unit: '单位'
          },
          {
            name: '1',
            code: '2',
            spec: '3',
            unit: '单位'
          },
          {
            name: '1',
            code: '2',
            spec: '3',
            unit: '单位'
          },
          {
            name: '1',
            code: '2',
            spec: '3',
            unit: '单位'
          },
          {
            name: '1',
            code: '2',
            spec: '3',
            unit: '单位'
          },
        ]
      }
    },
    created() {
      console.log('storageRecord');
    },
    methods: {
      handleClick(row) {
        console.log(row);
      }
    }
  }
</script>

<style lang="scss" scoped>
.storageRecord {
  &-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    // padding: 0 20px;
    &-btn {
      display: flex;
    }
    &-info {
      display: flex;
      justify-content: space-between;
      &-item {
        display: flex;
        align-items: center;
        margin-right: 20px;
        span {
          font-size: 12px;
        }
      }
    }
  }
}
</style>